package cn.ecut.service.impl;

import cn.ecut.dao.StudentDao;
import cn.ecut.model.Student;
import cn.ecut.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceimpl implements StudentService {
    @Autowired
    private StudentDao studentDao;

    @Override
    public String selectPasswordBynumber(String number) {
        return studentDao.selectPasswordBynumber(number);
    }

    @Override
    public int updatePasswordBynumber(Student student) {
        return studentDao.updatePasswordBynumber(student);
    }

    @Override
    public int addStudent(Student student) {
        return studentDao.addStudent(student);
    }

    @Override
    public int slectCountByphone(String phone) {
        return studentDao.slectCountByphone(phone);
    }

    @Override
    public int selectCountBynumber(String number) {
        return studentDao.selectCountBynumber(number);
    }

    @Override
    public Student selectInformationBynumber(String number) {
        return studentDao.selectInformationBynumber(number);
    }

    @Override
    public int updataStudent(Student student) {
        return studentDao.updataStudent(student);
    }

}
